#ifndef _NPC_TALK_UI_H_
#define _NPC_TALK_UI_H_

#include <base_ui.h>
#include <netpacket.h>
#include "easy_str.h"
#include <forge_ui.h>

class NPCTradeUI;
class NetStream;
class Player;
class Scene;

class NPCTalkUI:public BaseUI
{
private:
	enum{TEXT_H=20};
	enum{TEXT_COL=14,TEXT_ROW=5};

	ForgeUI* pForgeUI;
	NPCTradeUI* pNPCTradeUI;
	NetStream* nStream;
	Player* pPlayer;
	Scene* pScene;

	PacketNPCTalk pkg;

#ifdef _OGRE_3D_
	TextOverlay* pText[3] ;
	ImageInfo* vpInfoA ;
	ImageInfo* vpInfoB ;
	TextOverlay* pTextA ;
	TextOverlay* pTextB ;
#endif
public:
	long long NPCUniqueID;
public:
	NPCTalkUI ();

	void init(NetStream* stream, Player* pl, Scene* sc);

	void show (ForgeUI* fUI, NPCTradeUI* tUI, PacketNPCTalk& pk);

	void sendQuestAcceptedEvent();

	void beClick (int mx, int my,KeyMan& keyMan);

	void draw (HDC hdc);
};

#endif